import instance from "@/utils/request";

export const get_role_list = () => {
    let url = '/system/role/roles'
    return instance.get(url)
}

export const add_role = (data) => {
    let url = '/system/role/role'
    return instance.post(url,{...data})
}

export const get_one_role = (id) => {
    let url = '/system/role/roles/'+id
    return instance.get(url)
}

export const put_one_role = (id,params) => {
    let url = '/system/role/roles/'+id
    return instance.put(url,{...params})
}